-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump @vue/test-utils from 2.3.2 to 2.4.1 #492
Conversation
769c29f
to
7f71d65
Compare
@dependabot rebase |
Bumps [@vue/test-utils](https://github.com/vuejs/test-utils) from 2.3.2 to 2.4.1. - [Release notes](https://github.com/vuejs/test-utils/releases) - [Commits](vuejs/test-utils@v2.3.2...v2.4.1) --- updated-dependencies: - dependency-name: "@vue/test-utils" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
7f71d65
to
d319a98
Compare
The error in diff --git a/tests/unit/components/LemmaInput.test.ts b/tests/unit/components/LemmaInput.test.ts
index 9eb60cd6b9..37d6c66626 100644
--- a/tests/unit/components/LemmaInput.test.ts
+++ b/tests/unit/components/LemmaInput.test.ts
@@ -1,8 +1,8 @@
import { MessagesKey } from '@/plugins/MessagesPlugin/Messages';
import {
+ ComponentMountingOptions,
DOMWrapper,
mount,
- MountingOptions,
} from '@vue/test-utils';
import LemmaInput from '@/components/LemmaInput.vue';
import { ConfigKey } from '@/plugins/ConfigPlugin/Config';
@@ -20,7 +20,7 @@ describe( 'LemmaInput', () => {
let store: Store<RootState>;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
- function createComponent( config: Partial<MountingOptions<any>> = {} ) {
+ function createComponent( config: Pick<ComponentMountingOptions<any>, 'props' | 'global'> = {} ) {
store = initStore( {
lexemeCreator: unusedLexemeCreator,
langCodeRetriever: unusedLangCodeRetriever,
@@ -29,7 +29,6 @@ describe( 'LemmaInput', () => {
} );
return mount( LemmaInput, {
- ...config,
props: {
modelValue: '',
...config.props, (I’m not sure if the change from But the two other type errors are in Vue Test Utils itself, and I suspect they might require a newer Vue.js version to solve – but we want to keep the Vue version in sync with MediaWiki core. So I think this is stalled for now. |
The `...config` in particular was causing type issues when upgrading @vue/test-utils in #492; and while that pull request is also blocked for other reasons, I think we can make our lives easier by simplifying these types. Callers of this method (which is local to this one test file) only pass in props and/or global.provide, so we can just specify the types for those members instead of full ComponentOptions; the Props type from LemmaInput is just duplicated, since I think that’s simpler than trying to get it back out of the full/exported LemmaInput type again. Bug: T348108
The `...config` in particular was causing type issues when upgrading @vue/test-utils in #492; and while that pull request is also blocked for other reasons, I think we can make our lives easier by simplifying these types. Callers of this method (which is local to this one test file) only pass in props and/or global.provide, so we can just specify the types for those members instead of full ComponentOptions; the Props type from LemmaInput is just duplicated, since I think that’s simpler than trying to get it back out of the full/exported LemmaInput type again. Bug: T348108
Done (somewhat differently) in #535.
This is still the case; should be retried once there’s a new VTU release (or MediaWiki updates its Vue version). |
The type errors still persist in 2.4.2, as far as I can tell from a local test ( |
Superseded by #576. |
Bumps @vue/test-utils from 2.3.2 to 2.4.1.
Release notes
Sourced from
@vue/test-utils
's releases.... (truncated)
Commits
6af516a
publish: 2.4.1c41e914
chore(deps): update typescript-eslint monorepo to v6 (#2129)e235e3a
fix: modify createVMProxy (#2125)a304f59
chore: exception for no-extra-semi lint rule881646e
chore(deps): update dependency js-beautify to v1.14.95426ca2
chore(deps): update vitest to v0.33.0136e67b
chore(deps): update dependency prettier to v3 and eslint-plugin-prettier to v5ffbb7cf
chore(deps): update all non-major dependenciesf0df231
docs: add warning aboutisVisible()
73890ef
chore(deps): update vitest to v0.32.4You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)